
<link rev="Stylesheet" rel="Stylesheet" href="__CSS__/table.css">
<link rev="Stylesheet" rel="Stylesheet" href="__CSS__/common.css">
<style type="text/css">
	th,td
	{
		text-align:center;
		line-height:25px;
	}
</style>
<form id="form1" action="" method="post" name="form1">
	<div style="float:left;min-height:300px">
		<table style="width:100%;text-align:center" id="box-table-a" summary="团队成员管理">
			<thead>
				<tr>
					<th width="290px" scope="col">标题</th>
					<th width="60px" scope="col">作者</th>
					<th width="80px" scope="col">时间</th>
					<th width="50px" scope="col">操作</th>
				</tr>
			</thead>
			<tbody>
			<volist name="list" id="vo">
				<tr>
					<td width="290px"><a href="__APP__/Public/Blog/article/id/{$vo.Id}" target="_blank">{$vo.Title}</a></td>
					<td width="60px">{$vo.TrueName}</td>
					<td width="80px">{$vo.CreateDate|substr=0,10}</td>
					<td width="50px">
						<a href="javascript:void(0)" title="删除" 
						onclick="if(confirm('你确定要删除吗？')){dodeldel(this)}" class="del" val="{$vo.Id}" id="rptTeamBlog_ctl00_lbtnDelete" >
							<img src="__IMG__/icon_close.gif" alt="">
						</a>&nbsp;&nbsp;
						<if condition="$vo.IsApproved neq 1">
						<a href="javascript:void(0)" title="审核" val="{$vo.Id}" onclick="dopass(this)" id="rptTeamBlog_ctl00_lbtnCheck">
							<img src="__IMG__/selected.gif" alt="">
						</a>
						</if>
					</td>
				</tr>
			</volist>
			</tbody>
			<script type="text/javascript">
				function dodeldel(ob){
					var id = $(ob).attr('val');
					//alert(id);
					$.ajax({
						url:'__APP__/Team/Home/delTeamBlog',
						type:'POST',
						data:{id:id},
						dataType:'json',
						success:function(data){
							if(data.status == 1){
								alert(data.info);
								$(ob).parent().parent().remove();
							}else{
								alert(data.info);
							}
						},
						error:function(){
							alert('加载失败！');
						}
					});
				}
				function dopass(ob){
					var id = $(ob).attr('val');
					//alert(id);
					$.ajax({
						url:'__APP__/Team/Home/passTeamBlog',
						type:'POST',
						data:{id:id},
						dataType:'json',
						success:function(data){
							if(data.status == 1){
								alert(data.info);
								$(ob).remove();
							}else{
								alert(data.info);
							}
						},
						error:function(){
							alert('加载失败！');
						}
					});
				}
			</script>
		</table>
		<div class="yahoo2">
			<span id="Pager1">
				{$page}
			</span>
		</div>
    </div>
 </form>